
package com.smartthinking.CICPNL.home.activity;
import java.util.Dictionary;
import java.util.List;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.smartthinking.CICPNL.R;


public class DestinoArrayAdapterPhone extends BaseAdapter {
  private final Context context;
  private final List<Dictionary<String,String>> values;
  private final String server;
  public String video_URL;
  
  Utilities util;

  public DestinoArrayAdapterPhone(Context context, List<Dictionary<String,String>> values, String server) {
	    this.context = context;
	    this.values = values;
	    this.server = server;
	    util = new Utilities();
  }
  


  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View rowView = inflater.inflate(R.layout.ui_destino_telefono, parent, false);
    
  
    Dictionary dic = values.get(position);
    
    TextView txtPhone = (TextView) rowView.findViewById(R.id.tv_dest_tel);
    txtPhone.setText(dic.get("dt_nombre").toString() + " " + dic.get("dt_numero").toString());
    
    
    return rowView;
  }

@Override
public int getCount() {
	// TODO Auto-generated method stub
	return values.size();
}

@Override
public Object getItem(int arg0) {
	// TODO Auto-generated method stub
	return null;
}

@Override
public long getItemId(int arg0) {
	// TODO Auto-generated method stub
	return 0;
}
} 



